Question 140
A distribution must add a security response header to viewer responses consistently. Which CloudFront configuration fits?
- An S3 Lifecycle policy
- An origin request policy alone
- A WAF rule action that blocks all requests lacking the header
- A response headers policy
Explanation
Correct Answer
D:The policy applies configured response headers at the distribution behavior, allowing consistent browser security signals without editing every origin response.
Incorrect Answers
A:Lifecycle changes stored object transitions and expiration, not the HTTP header policy applied to viewer responses.
B:That policy governs information forwarded toward the origin and is not the direct configuration for adding viewer response headers.
C:Rejecting requests based on an input header is different from adding a security header to the response returned to every viewer.
Question 141
A web ACL must block viewers from selected countries. Which WAF condition directly evaluates that property?
- A DNS TTL setting
- A request body size constraint
- A WAF string match on the browser's language header
- A geographic match statement
Explanation
Correct Answer
D:Geographic matching evaluates the request's derived location under the configured IP interpretation, providing a country-oriented rule for the specified traffic.
Incorrect Answers
A:Caching duration affects name resolution behavior rather than determining whether a web request from a selected country is permitted.
B:Payload length does not establish the viewer's country and cannot directly express the specified geographic blocking condition.
C:Language preference is client-controlled and does not directly establish the source country used by a geographic access rule.
Question 142
A WAF rule reads a forwarded-IP header supplied through a trusted proxy. What must the design prevent?
- Origin object versioning
- Untrusted clients supplying the trusted-IP header
- Normal HTTPS encryption
- Shorter log retention
Explanation
Correct Answer
B:The IP decision is trustworthy only if the request path and proxy behavior prevent arbitrary clients from supplying an accepted identity value.
Incorrect Answers
A:Version history is a storage capability and does not determine whether an external client can forge the IP attribution header.
C:Encryption protects transport and should remain enabled; it does not by itself cause the forwarded-header spoofing risk described.
D:Retention affects later investigation but does not establish the authenticity of the request header used for live enforcement.
Question 143
A CloudFront S3 origin uses the website endpoint. Can OAC secure that endpoint like a standard S3 bucket origin?
- No; use a supported S3 bucket origin for OAC
- Yes; enable CORS only
- Yes; merely rename the origin
- Yes; attach a security group to the bucket
Explanation
Correct Answer
A:An S3 website endpoint is treated as a custom origin and does not support the same OAC-authenticated bucket-origin access model.
Incorrect Answers
B:Browser cross-origin permissions do not convert a website endpoint into a supported OAC bucket origin.
C:A display name does not change the endpoint type or add support for authenticated OAC requests to a website endpoint.
D:S3 buckets do not accept EC2-style security-group attachments, and that proposal cannot create the required origin authentication path.
Question 144
An edge design must reduce volumetric DDoS exposure and cache static responses near users. Which AWS service is the natural entry point?
- A KMS multi-Region key
- Amazon CloudFront
- An ALB alone in one Region with no edge cache
- A public EC2 address alone
Explanation
Correct Answer
B:The global edge distribution and caching model reduces direct origin load and integrates with AWS edge protections, complementing appropriate origin restrictions.
Incorrect Answers
A:Cryptographic replication does not distribute HTTP responses or reduce incoming request load on the application origin.
C:A regional load balancer distributes origin requests but does not supply the global static-content caching layer requested at the entry point.
D:Directly exposing an instance concentrates traffic at the origin and supplies no distributed content cache in front of it.
Question 145
A subscription requires enhanced DDoS response capabilities and protected-resource support. Which service tier is relevant?
- AWS Config recording alone
- Amazon Inspector code scanning
- AWS Shield Advanced
- AWS Shield Standard alone
Explanation
Correct Answer
C:Advanced supplies additional DDoS capabilities beyond the standard baseline; protections and eligible resources must be configured according to the service requirements.
Incorrect Answers
A:Configuration history helps investigate resource changes but does not provide a DDoS protection subscription or its response capabilities.
B:Code vulnerability assessment is a different security function and does not absorb traffic or provide enhanced DDoS response support.
D:The baseline provides automatic protections but does not supply every subscription capability requested for enhanced operational DDoS response.
Question 146
Browser scripts from another origin cannot read an S3 response, but curl can retrieve it anonymously. What does this demonstrate?
- CORS is not an authorization boundary for non-browser clients
- Curl automatically assumes the bucket owner's role
- The bucket is private because browsers show an error
- CORS encrypts objects only for browsers
Explanation
Correct Answer
A:Browser enforcement can restrict script access to responses while the resource remains publicly readable. Bucket authorization must separately prevent unwanted reads.
Incorrect Answers
B:A normal anonymous request does not obtain owner credentials merely because it originates from a command-line client.
C:The successful anonymous non-browser request demonstrates that a browser restriction is not proof of private resource permissions.
D:Cross-origin rules do not encrypt object contents or create a browser-specific cryptographic access mechanism.
Question 147
Private premium content is delivered through CloudFront. Viewers should receive time-limited URL access. Which feature fits?
- CloudFront signed URLs
- A response cache TTL only
- A public distribution URL with a long filename
- A security group on the viewer browser
Explanation
Correct Answer
A:A trusted signer issues a URL with access conditions, allowing CloudFront to validate time-bounded viewer authorization for the protected content.
Incorrect Answers
B:Cache lifetime determines response reuse and does not restrict how long a particular viewer is authorized to request the content.
C:Unpredictable naming does not provide an expiry-enforced authorization token once a viewer knows the object's location.
D:The content provider cannot attach an AWS security group to arbitrary viewers, and that would not implement distribution-level signed authorization.
Question 148
A versioned managed WAF rule group must remain on a tested version until the next release window. What should the team do to avoid an unmanaged transition when that version expires?
- Pin a version once and ignore all future expiry information
- Set every managed rule to Count permanently instead of managing versions
- Use the default version while assuming its rules never change
- Select the tested version and monitor supported version-expiry notifications
Explanation
Correct Answer
D:Version control reduces unexpected rule changes, but pinned versions have a lifecycle. Notifications and a tested upgrade plan prevent the team from treating the selection as permanent.
Incorrect Answers
A:A version selection is not an indefinite support guarantee. The group's documented expiration behavior still needs operational handling.
B:Counting avoids enforcement but sacrifices the required protection and does not establish the requested controlled version lifecycle.
C:The default can move as the provider updates the group, so it does not guarantee the fixed tested behavior requested.
Question 149
A reverse proxy fronts an ALB. The ALB should reject requests that bypass the proxy. Which protection is appropriate?
- Add a public-read S3 policy
- Use a secret-looking ALB DNS name only
- Rely only on CloudFront cache expiration
- Restrict the origin network path and validate proxy-origin requests
Explanation
Correct Answer
D:Origin controls must establish the permitted route and trust relationship; edge filtering is weakened if clients can reach an unprotected origin directly.
Incorrect Answers
A:Storage permissions do not restrict the ALB's accepted sources or validate that an origin request passed through the intended proxy.
B:The DNS name can be discovered or leaked and does not constitute a network or application authorization rule.
C:Caching does not prevent a client from sending a separate request directly to a reachable load balancer.
Question 150
A WAF rule must inspect only requests to an API path without affecting static content. Which design fits?
- Block all TCP traffic from each viewer
- A TLS policy applied to every listener
- A CloudFront invalidation for all static objects
- 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.