Question 150

A WAF rule must inspect only requests to an API path without affecting static content. Which design fits?

  1. Block all TCP traffic from each viewer
  2. A TLS policy applied to every listener
  3. A CloudFront invalidation for all static objects
  4. Combine the path match with the relevant inspection condition

Explanation

Correct Answer

D:

A scoped Boolean rule applies the content check to the intended request subset while leaving unrelated resource paths outside that rule.

Incorrect Answers

A:

Network-wide blocking cannot distinguish the API URI from static content fetched by the same legitimate viewer.

B:

Transport protocol restrictions do not express which HTTP URI paths should receive this particular application-content inspection rule.

C:

Removing cached content changes delivery behavior but does not scope the WAF condition to the intended API request path.

Question 151

An edge rule returns unexpectedly after a label-generating managed rule. What should be checked?

  1. The origin's cache TTL only
  2. Rule priority and whether earlier actions terminate evaluation
  3. The WAF logging retention period only
  4. The downstream rule's match expression without considering earlier rules

Explanation

Correct Answer

B:

Labels are useful only when the request reaches the consuming rule; an earlier terminating action can prevent the expected later processing.

Incorrect Answers

A:

Cache behavior does not determine which WAF labels exist when a later rule evaluates an incoming request.

C:

Retention affects later evidence availability, not the runtime ordering or termination behavior that determines whether the consuming rule executes.

D:

Even a correct expression never runs if an earlier terminating action ends evaluation before the request reaches it.

Question 152

A WAF body inspection rule cannot see content beyond its supported inspection size. What must be chosen deliberately?

  1. Increase the origin disk capacity
  2. Oversize handling and complementary application validation
  3. Assume every full body is always inspected
  4. Disable TLS to enlarge the body

Explanation

Correct Answer

B:

Inspection limits mean the rule needs explicit behavior for oversized requests; the application must still validate complete inputs within its own processing boundary.

Incorrect Answers

A:

Origin storage does not change the managed WAF request-body inspection limit or its handling of oversized content.

C:

That assumption ignores the stated size boundary and can leave unexamined input treated as though it received complete inspection.

D:

Weakening transport security does not remove the service's configured inspection boundary and exposes request contents unnecessarily.

Question 153

An IoT device should publish only to its own topic. Which authorization should be narrowly scoped?

  1. The S3 archive storage class
  2. The website's CORS origin list
  3. The ALB idle timeout
  4. Its AWS IoT policy topic permissions

Explanation

Correct Answer

D:

The device's policy should limit the relevant publish resource and identity context, rather than allowing every device to publish to arbitrary topics.

Incorrect Answers

A:

Storage tier affects archived objects, not the device's authenticated publish authorization at the IoT endpoint.

B:

Browser response controls do not determine a device certificate's permission to publish messages to an IoT topic.

C:

Connection timeout configuration on a separate HTTP load balancer does not define the IoT device's permitted messaging topics.

Question 154

An EC2 application needs S3 access without embedded permanent keys. Which identity should be used?

  1. An S3 object ACL as the only identity
  2. An IAM role delivered through an instance profile
  3. An IAM user's secret baked into the AMI
  4. The account root password in user data

Explanation

Correct Answer

B:

The instance obtains temporary role credentials through the supported metadata path, avoiding hardcoded long-term user keys in code or disk images.

Incorrect Answers

A:

An ACL can affect storage permissions but does not provide the running application with authenticated AWS request credentials.

C:

Every launched copy receives the same persistent credential, expanding exposure and making rotation dependent on image and deployment changes.

D:

Root credentials are excessive and user data is not an appropriate distribution mechanism for an account-wide privileged secret.

Question 155

An ECS design separates application data access from task startup operations. Which TWO role assignments are appropriate? Choose TWO.

  1. Give every application the EC2 node role exclusively
  2. Embed the account root key in the image
  3. Use an image tag as the AWS authentication credential
  4. Put business API permissions in the task role
  5. Put supported image-pull and log-delivery permissions in the execution role

Explanation

Correct Answers

D:

The running application receives task-role credentials for its authorized AWS operations, keeping business access separate from agent setup duties.

E:

ECS uses the execution role for the relevant task startup and agent operations, rather than treating it as the application business identity.

Incorrect Answers

A:

A shared node identity can collapse workload isolation and does not implement the specified task-level permission separation.

B:

Permanent account-wide credentials bypass the intended role separation and expose excessive authority to every image consumer.

C:

Image names identify content references and cannot authenticate signed AWS API requests by the application or agent.

Question 156

A container can reach EC2 metadata and obtain the node's broad permissions. What should be improved?

  1. Put the same node keys in every image
  2. Change only the container hostname
  3. Give the node AdministratorAccess
  4. Use isolated workload roles and restrict node metadata

Explanation

Correct Answer

D:

Separating pod or task identity from the node reduces credential sharing; network and metadata controls should prevent workloads from falling back to privileged node credentials.

Incorrect Answers

A:

Credential duplication expands persistence and does not isolate the permissions available to individual workloads.

B:

A hostname is descriptive process context and does not prevent access to node metadata or change the permissions of its credentials.

C:

Increasing node privilege makes leaked metadata credentials more powerful and worsens the stated cross-workload exposure.

Question 157

An EC2 workload must require token-based metadata requests. Which setting enforces that requirement?

  1. Change only the instance metadata hop limit
  2. Rotate the role's session credentials without changing metadata settings
  3. Set HttpTokens to optional
  4. Set instance metadata HttpTokens to required

Explanation

Correct Answer

D:

Requiring IMDSv2 tokens rejects metadata requests that do not complete the token flow, reducing exposure to some request-forgery patterns.

Incorrect Answers

A:

Hop limits affect network traversal of metadata responses; they do not replace the HttpTokens requirement that rejects tokenless requests.

B:

New credentials remain reachable through tokenless metadata requests when the instance continues to permit the older authentication path.

C:

Optional mode retains support for tokenless metadata access and therefore does not enforce the stated token requirement.

Question 158

A server image needs a repeatable build, hardening, and validation pipeline. Which service fits?

  1. Systems Manager Run Command used only for ad hoc host changes
  2. CloudTrail event history
  3. AWS Artifact
  4. EC2 Image Builder

Explanation

Correct Answer

D:

Image pipelines combine components and tests into a repeatable build process, helping distribute a validated baseline rather than relying on manual host changes.

Incorrect Answers

A:

Live commands can change individual nodes, but they do not replace a repeatable image build with versioned components and validation tests.

B:

Audit history records API activity but does not build hardened operating-system images or execute their validation components.

C:

Vendor compliance reports can support governance but do not produce the organization's tested machine-image baseline.

Question 159

An organization wants automated OS patch deployment with approved baselines and maintenance windows. Which tool is appropriate?

  1. Systems Manager Patch Manager
  2. An Inspector finding suppression rule
  3. An EC2 image scan without a patch-deployment workflow
  4. A Config compliance rule without remediation

Explanation

Correct Answer

A:

Patch baselines and scheduled operations support controlled update deployment to managed nodes, with compliance reporting to identify systems needing further action.

Incorrect Answers

B:

Suppressing a vulnerability finding changes visibility, not the installed package version or the fleet's approved patch baseline.

C:

Assessment can identify vulnerable packages, but it does not install the approved operating-system updates during maintenance windows.

D:

Detecting patch noncompliance does not itself execute the controlled update installation required on managed hosts.

Question 160

An ECR repository needs continuing vulnerability reassessment as new advisories appear. Which integration is relevant?

  1. An immutable image tag alone
  2. A public repository policy
  3. An ECR lifecycle rule expiring older image tags
  4. Amazon Inspector enhanced scanning

Explanation

Correct Answer

D:

Enhanced scanning integrates ECR image assessment with Inspector and supported ongoing evaluation, helping identify newly relevant package vulnerabilities in retained images.

Incorrect Answers

A:

Tag immutability prevents retagging but does not analyze packages against newly published vulnerability intelligence.

B:

Public access broadens image retrieval and supplies no vulnerability analysis or update-driven assessment capability.

C:

Expiration controls image retention and does not reassess retained package content when new vulnerability intelligence is published.

AWS Certified Security - Specialty SCS-C03 Practice Tests