Curated

Architecture Design and Implementation Built for the Cloud 1 (1.1–1.4)

0 votes

Questions59

  1. Question 51

    Architecture Design and Implementation Built for the Cloud

    An Amazon EKS application runs entirely on AWS Fargate. The AWS Load Balancer Controller must expose it through an Application Load Balancer; which target configuration should the architect use?

    Show the answer

    Correct answerA. IP targets registered with the application pod addresses

    AWhy this is right: IP target mode lets the controller register Fargate pod addresses directly in the target group.

    BWhy not this: Lambda target groups invoke Lambda functions, not Kubernetes Services or Fargate pods.

    CWhy not this: Application Load Balancer targets are used by Network Load Balancers, not to register individual pods.

    DWhy not this: Instance targets use EC2 worker nodes and NodePort routing rather than directly targeting Fargate pods.

    For EKS pods on Fargate, the Application Load Balancer must use IP targets to route directly to pod addresses. Instance targets rely on worker-node instances and NodePort routing, which do not fit Fargate pods.

    Open this question
  2. Question 52

    Architecture Design and Implementation Built for the Cloud

    Which service is designed for lightweight, submillisecond viewer-request URL rewrites at CloudFront edge locations?

    Show the answer

    Correct answerD. CloudFront Functions

    AWhy not this: Regional Lambda functions execute in a selected AWS Region rather than at CloudFront edge locations.

    BWhy not this: API Gateway manages API requests but does not provide CloudFront viewer-request edge functions.

    CWhy not this: Lambda@Edge handles more complex edge logic with greater execution overhead than CloudFront Functions.

    DWhy this is right: CloudFront Functions supports lightweight URL rewrites with submillisecond execution at the edge.

    CloudFront Functions is designed for lightweight request and response transformations with submillisecond execution. Lambda@Edge supports more complex processing but is not the submillisecond lightweight execution option.

    Open this question
  3. Question 53

    Architecture Design and Implementation Built for the Cloud

    An HTTPS application requires fixed public IPv4 addresses for client firewall allowlists and path-based routing to separate microservices. Which ingress design meets both requirements without application-managed proxies?

    Show the answer

    Correct answerA. A Network Load Balancer with Elastic IP addresses targeting an Application Load Balancer

    AWhy this is right: The Network Load Balancer supplies fixed addresses, while the Application Load Balancer supplies path-based routing.

    BWhy not this: An Application Load Balancer cannot use customer-assigned Elastic IP addresses as its public frontend addresses.

    CWhy not this: A Network Load Balancer routes connections at the transport layer and cannot select targets by URL path.

    DWhy not this: The public frontend would still be an Application Load Balancer with changing addresses; this target arrangement is also unsupported.

    A Network Load Balancer provides static addresses and can target an Application Load Balancer, which performs path-based routing. A Network Load Balancer alone cannot inspect URL paths to select target groups.

    Open this question
  4. Question 54

    Architecture Design and Implementation Built for the Cloud

    An Amazon EKS workload uses the Horizontal Pod Autoscaler to add replicas during traffic spikes, but new pods remain Pending because its managed node group lacks capacity. Which change automatically provides capacity for these pods?

    Show the answer

    Correct answerD. Configure Cluster Autoscaler to scale the managed node group.

    AWhy not this: AWS Application Auto Scaling does not directly scale Kubernetes pod replicas or EKS managed node groups.

    BWhy not this: Higher CPU requests increase each pod's capacity requirement and can make scheduling more difficult.

    CWhy not this: A higher replica limit permits more pods but does not provide nodes on which to schedule them.

    DWhy this is right: Cluster Autoscaler can expand the managed node group to accommodate unschedulable pods.

    Cluster Autoscaler increases node group capacity when unschedulable pods require additional nodes. The Horizontal Pod Autoscaler changes replica counts, not the number of worker nodes.

    Open this question
  5. Question 55

    Architecture Design and Implementation Built for the Cloud

    A dashboard uses API Gateway WebSocket APIs, and an SNS topic receives status updates. Which design lets a backend push each update to all currently connected dashboard clients?

    Show the answer

    Correct answerD. Invoke Lambda from SNS to read stored connection IDs and call the API Gateway Management API.

    AWhy not this: The $connect integration handles connection establishment, not delivery of subsequent SNS updates.

    BWhy not this: API Gateway WebSocket APIs do not automatically poll an SQS queue to push messages to connected clients.

    CWhy not this: SNS cannot directly subscribe a client's API Gateway WebSocket connection as a delivery endpoint.

    DWhy this is right: The backend can use stored connection IDs to push messages through the API Gateway Management API.

    A Lambda subscriber can fan out updates to active connection IDs through the API Gateway Management API. SNS does not support direct subscriptions to API Gateway WebSocket client connections.

    Open this question
  6. Question 56

    Architecture Design and Implementation Built for the Cloud

    A pooled DynamoDB table and its global secondary index use tenant IDs as partition keys, and clients access DynamoDB through tenant-scoped temporary credentials. Which design enforces tenant isolation for both table and index queries without relying on application filters?

    Show the answer

    Correct answerB. Validate tenant identity, issue trusted tenant session tags, and constrain permitted resources with dynamodb:LeadingKeys conditions.

    AWhy not this: A caller can omit an application-required filter; a shared role does not enforce tenant-specific partition access.

    BWhy this is right: Trusted session tags can bind permitted leading partition keys to the authenticated tenant for table and index access.

    CWhy not this: A request header is not an IAM partition-key restriction and can contain a different tenant's identifier.

    DWhy not this: The shared table's resource tag is the same for every tenant and does not constrain access to individual tenant partitions.

    Trusted tenant session tags can drive IAM conditions that restrict DynamoDB partition-key access on permitted table and index resources. Filter expressions only filter query results; they are not an IAM tenant-isolation boundary.

    Open this question
  7. Question 57

    Architecture Design and Implementation Built for the Cloud

    A SaaS application stores multiple tenants' rows in shared Aurora PostgreSQL tables and must enforce tenant isolation even when an application query omits its tenant filter. Which design meets this requirement?

    Show the answer

    Correct answerC. Enforce row-level security using trusted tenant context and a runtime role that cannot bypass it.

    AWhy not this: Storage encryption protects data at rest but does not enforce tenant-specific visibility in SQL results.

    BWhy not this: A read replica contains the shared data and does not inherently restrict a tenant to its own rows.

    CWhy this is right: Database-enforced policies restrict visible rows using trusted tenant context, even when the query lacks a tenant predicate.

    DWhy not this: Application predicates provide no database-enforced protection when a query omits its tenant filter.

    PostgreSQL row-level security can enforce tenant predicates inside the database, independently of application query filters. Developer-supplied predicates alone do not protect against an omitted filter.

    Open this question
  8. Question 58

    Architecture Design and Implementation Built for the Cloud

    A CloudFront application must normalize tracking parameters before cache lookup with minimal latency, and add a header obtained from an external service only when forwarding cache misses to the origin. Which design meets these requirements?

    Show the answer

    Correct answerC. Use CloudFront Functions at viewer request for normalization and Lambda@Edge at origin request for external header retrieval.

    AWhy not this: Viewer-request execution retrieves the external header on cache hits as well as misses, adding unnecessary latency.

    BWhy not this: Origin-request processing occurs after cache lookup, so normalization there cannot consolidate the current request's cache key.

    CWhy this is right: Viewer-request normalization precedes cache lookup, while Lambda@Edge can retrieve the header when an origin request is needed.

    DWhy not this: CloudFront Functions do not support origin-request triggers or external network calls.

    CloudFront Functions can normalize requests before cache lookup with low overhead; Lambda@Edge origin-request functions can make network calls only on origin-bound requests. Doing both at origin request normalizes too late to determine the cache lookup key.

    Open this question
  9. Question 59

    Architecture Design and Implementation Built for the Cloud

    An API Gateway WebSocket application publishes ordered account updates, but clients can disconnect after a successful backend send without processing the message. Which design elements let reconnecting clients recover missed updates and apply each update once? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersC. Replay retained updates after the client's last acknowledged sequence number when it reconnects.D. Have clients acknowledge applied sequence numbers and discard already-applied updates.E. Store account updates durably with monotonically increasing per-account sequence numbers.

    AWhy not this: TTL only expires records; an old connection ID does not redirect messages to a replacement connection.

    BWhy not this: SQS deduplication does not track whether a WebSocket client processed a message or suppress duplicates during client replay.

    CWhy this is right: Replay restores updates missed during disconnection or lost before acknowledgment.

    DWhy this is right: Acknowledgments track processing progress, and duplicate suppression prevents replayed updates from being applied again.

    EWhy this is right: Durable ordered history provides the updates and positions needed to recover gaps after disconnection.

    FWhy not this: A successful send does not confirm application-level processing by the client.

    Durable sequenced history, client acknowledgments with duplicate suppression, and replay support recovery across connection loss. A successful Management API send does not prove that the client processed the message.

    Open this question