ECCouncil 312-38 (Certified Network Defender) Practice Test 18

Question 170

An AWS storage administrator needs to minimize accidental anonymous exposure of newly created S3 buckets. Which preventive baseline is most appropriate?

  1. Allow ACLs granting everyone read access by default
  2. Disable object-access monitoring and retain no logs
  3. Enable S3 Block Public Access at the intended scope
  4. Rely solely on obscurity of bucket names

Explanation

Correct Answer

C:

Block Public Access settings constrain bucket or account-level public access pathways and help prevent accidental data publication.

Incorrect Answers

A:

Public ACLs make objects broadly retrievable and contradict the objective of preventing anonymous exposure.

B:

Losing visibility neither blocks public access nor helps investigate accidental exposure when it occurs.

D:

Bucket names may be discoverable and cannot function as authorization boundaries for sensitive objects.

Question 171

An AWS security analyst needs to determine which IAM principal invoked a sensitive control-plane API. Which service provides relevant event history?

  1. EBS volume sizing metrics
  2. An Elastic Load Balancer listener rule
  3. Amazon Route 53 DNS routing alone
  4. AWS CloudTrail

Explanation

Correct Answer

D:

CloudTrail records supported AWS account API activity and associated identities, supplying audit evidence for many administrative operations.

Incorrect Answers

A:

Capacity metrics describe block storage use and cannot identify the caller of a cloud control-plane request.

B:

Listener rules direct application traffic and do not provide general IAM principal history across account management APIs.

C:

Route 53 resolves and directs name-based traffic; its primary purpose is not auditing every management API invocation.

Question 172

Azure virtual machines in a subnet should accept HTTPS from a load balancer but reject other unsolicited inbound application ports. Which Azure network control fits?

  1. An Azure resource tag without any enforcement policy
  2. A Network Security Group with scoped inbound rules
  3. An unrestricted route to the subnet
  4. A public DNS CNAME record

Explanation

Correct Answer

B:

An NSG filters traffic by source, destination, port, protocol, and priority at subnet or NIC scope, supporting least-privilege admission.

Incorrect Answers

A:

Tags help organize and target management operations but do not themselves block network packets to a VM.

C:

Routes determine reachability but do not enforce the specified selective port-permission policy.

D:

DNS aliasing affects name resolution; it does not filter packets to exposed application listeners.

Question 173

An Azure virtual machine must access Key Vault without storing a client secret in a deployment script. Which Azure feature best addresses credential handling?

  1. Anonymous Key Vault access to anyone on the virtual network
  2. The subscription owner account used by every application
  3. A managed identity with scoped Key Vault authorization
  4. A Key Vault access policy assigned to an ordinary user with a stored password
  5. A password checked into source control

Explanation

Correct Answer

C:

Azure can issue workload identity tokens so the VM accesses the vault using assigned permissions rather than a static embedded secret.

Incorrect Answers

A:

Network location does not substitute for identity authorization to read protected vault secrets.

B:

Broad shared administrative authority violates least privilege and complicates revocation and attribution.

D:

A user identity may be authorized, but embedding its password in a VM script defeats secretless workload authentication.

E:

Source-stored credentials are long-lived exposure points and undermine the request for secretless workload authentication.

Question 174

An Azure PaaS database should be reachable from a specific VNet through a private IP without exposing its public endpoint. Which design is suitable?

  1. A resource group name containing 'private'
  2. Azure Private Endpoint with public access disabled as applicable
  3. Open all database ports and trust the certificate name alone
  4. An Internet-facing public IP with a descriptive DNS alias

Explanation

Correct Answer

B:

Private Link maps access to a private address in the VNet while endpoint and DNS settings can keep the data path off public reachability.

Incorrect Answers

A:

Resource naming is metadata and has no effect on database packet paths or public network exposure.

C:

TLS authentication does not remove the unwanted public attack surface when listeners remain broadly available.

D:

Publishing a public address remains externally reachable unless separately restricted and does not supply a private endpoint.

Question 175

Azure administrators suspect a subscription-level Azure RBAC Owner role assignment changed yesterday. Which telemetry is specifically relevant to this Azure resource-management operation?

  1. Azure Monitor guest operating-system performance counters alone
  2. A virtual machine's CPU utilization chart alone
  3. Only the browser's local download history
  4. Azure Activity Log events with scope and identity context

Explanation

Correct Answer

D:

Activity Log records supported subscription and resource management events and helps reconstruct who changed administrative configuration.

Incorrect Answers

A:

Guest metrics can reveal VM conditions but do not directly identify the actor who changed a subscription role assignment.

B:

CPU telemetry can show load but not necessarily which management principal changed a role assignment.

C:

Client history is incomplete and cannot reliably audit all cloud management operations by different administrators.

Question 176

A Google Cloud Storage bucket contains internal backups. Security policy requires that nobody can make its objects publicly readable by accidentally granting allUsers access in a future IAM change. Which control directly enforces this requirement?

  1. Enable uniform bucket-level access only, without a public-access restriction
  2. Enforce Cloud Storage public access prevention for the bucket or through organization policy
  3. Use the Archive storage class for every backup object
  4. Encrypt backups with a customer-managed key while leaving permissive public IAM bindings

Explanation

Correct Answer

B:

Cloud Storage public access prevention rejects or overrides authorization granted to allUsers and allAuthenticatedUsers through supported IAM or ACL mechanisms, preventing accidental public exposure.

Incorrect Answers

A:

Uniform bucket-level access disables object ACLs, but IAM can still grant allUsers broad access unless another public-access prevention policy forbids it.

C:

Changing the object storage class affects cost and access characteristics, but does not prevent an IAM grant from publishing data.

D:

Encryption at rest is important for key control, but it does not substitute for an explicit prohibition on public IAM access to objects.

Question 177

A GCP VPC needs to allow SSH only from an approved bastion address range to a specific group of instances. Which configuration is appropriate?

  1. Allow TCP 22 from 0.0.0.0/0 to all VMs
  2. Change the VM's display name to 'bastion-only'
  3. A narrowly targeted VPC firewall rule with source and target constraints
  4. Add a wider public DNS wildcard record

Explanation

Correct Answer

C:

Google Cloud VPC firewall rules can control ingress by source ranges and targeted instances or identities, avoiding broad SSH exposure.

Incorrect Answers

A:

Global SSH exposure creates unnecessary attack opportunities and ignores both the approved source and target restrictions.

B:

Labels and names do not enforce source IP restrictions on the packet path by themselves.

D:

Public hostname resolution is not a replacement for an ingress network firewall policy.

Question 178

A security team wants to spot cloud storage buckets exposed publicly across several accounts without manually reviewing each account. Which capability is most relevant?

  1. A consumer password manager without cloud API visibility
  2. A per-host screen-lock policy as the only control
  3. An application profiler measuring CPU call stacks
  4. Cloud security posture management with continuous configuration evaluation

Explanation

Correct Answer

D:

CSPM-style assessment can inventory resources and flag insecure configurations against established policies across cloud environments.

Incorrect Answers

A:

Password storage does not evaluate bucket policies or detect multi-account configuration drift automatically.

B:

Host screen locks do not examine externally reachable cloud resource configurations and their permissions.

C:

Performance profiling helps optimize code but does not centrally inventory access policies for cloud storage resources.

Question 179

A highly regulated tenant requires customer control over key rotation and revocation for encrypted cloud data. Which design decision is most relevant?

  1. Select supported customer-managed keys with defined key-access governance
  2. Disable encryption to simplify data migration
  3. Assume default provider encryption proves keys are exclusively tenant controlled
  4. Store every key directly in plaintext application settings

Explanation

Correct Answer

A:

Customer-managed keys allow more explicit lifecycle control when a cloud service supports them, though service dependencies and availability must be planned.

Incorrect Answers

B:

Removing encryption violates the confidentiality goal and does not solve the governance requirement.

C:

Provider-managed encryption may be suitable but does not necessarily confer the demanded rotation and authorization control to the tenant.

D:

Exposed static keys weaken secrecy and are difficult to govern, especially across many applications and administrators.

Question 180

A cloud build pipeline must sign release manifests, but security policy forbids exporting the long-lived private signing key to CI runners. The signing operation must remain auditably hardware protected. Which design fits?

  1. Put an encrypted private-key archive in the CI image and decrypt it at job startup
  2. Use a managed HSM-backed signing key with scoped API permission for the pipeline
  3. Publish only the public verification key in the build repository
  4. Enable TLS between CI agents and the source-code repository while keeping local signing files

Explanation

Correct Answer

B:

An HSM-backed signing service can perform cryptographic signing without releasing the private key to build jobs. Scope sign permissions and record the requests for investigation and review.

Incorrect Answers

A:

Even if an archive is encrypted at rest, the runner must eventually handle the decrypted private key, violating the requirement to keep private material outside the pipeline.

C:

Distributing a public key enables independent signature verification, but it does not provide the protected operation that generates a signature with a private key.

D:

TLS protects code transfer but does not prevent a compromised runner from reading signing key material that has been stored or decrypted locally.

Certified Network Defender (312-38) Practice Tests