AWS Developer Associate · डोमेन 1 / 4 · परीक्षा का 32%

AWS Developer Associate डोमेन 1: AWS सेवाओं के साथ डेवलपमेंट

AWS Certified Developer – Associate (DVA-C02) परीक्षा के AWS सेवाओं के साथ डेवलपमेंट के लिए 64 मुफ़्त अभ्यास प्रश्न। पहले हर प्रश्न खुद हल करें, फिर सही विकल्प और व्याख्या के लिए "उत्तर दिखाएँ" खोलें।

AWS सेवाओं के साथ डेवलपमेंट अभ्यास प्रश्न

  1. प्रश्न 1. Python में लिखे एक Lambda function को invocations के बीच database connection दोबारा उपयोग करना है। Connection कहाँ बनाना चाहिए?

    1. Handler के अंदर, हर invocation की शुरुआत में
    2. प्रति request चलने वाली एक अलग Lambda layer में
    3. Handler function के बाहर, initialization code में
    4. Handler द्वारा पढ़े जाने वाले environment variable में
    उत्तर दिखाएँ

    उत्तर: C. Handler function के बाहर, initialization code में

    Handler के बाहर का code हर execution environment में एक बार चलता है, इसलिए warm invocations connection का दोबारा उपयोग करती हैं।

  2. प्रश्न 2. एक Lambda function को processing के दौरान 3 GB की अस्थायी file चाहिए। उसे file कहाँ लिखनी चाहिए?

    1. Function की deployment package directory में
    2. /tmp directory में, ज़रूरत के अनुसार ephemeral storage बढ़ाकर
    3. File की contents रखने वाले environment variable में
    4. Lambda layer द्वारा दी गई /opt directory में
    उत्तर दिखाएँ

    उत्तर: B. /tmp directory में, ज़रूरत के अनुसार ephemeral storage बढ़ाकर

    /tmp लिखने योग्य ephemeral storage है, जिसे 512 MB से 10 GB तक configure किया जा सकता है। /opt और code directory read-only हैं।

  3. प्रश्न 3. कई Lambda functions एक जैसी third-party libraries साझा करते हैं। Libraries को एक बार package करके दोबारा कैसे उपयोग करें?

    1. उन्हें Lambda layer के रूप में publish करके हर function से attach करें
    2. उन्हें DynamoDB में store करके runtime पर load करें
    3. उन्हें हर function के environment variables में रखें
    4. पहले चलने वाले function से उन्हें /tmp में upload करें
    उत्तर दिखाएँ

    उत्तर: A. उन्हें Lambda layer के रूप में publish करके हर function से attach करें

    Layers shared code या dependencies को package करती हैं। उनकी contents execution environment में /opt में extract होती हैं।

  4. प्रश्न 4. एक team चाहती है कि नया code test होते समय production traffic एक stable Lambda identifier की ओर point करे। Production को क्या उपयोग करना चाहिए?

    1. Function का $LATEST version
    2. हर release के लिए नया function name
    3. Published version की ओर point करने वाला alias
    4. $LATEST पर resource-based policy
    उत्तर दिखाएँ

    उत्तर: C. Published version की ओर point करने वाला alias

    Published versions अपरिवर्तनीय होते हैं। prod जैसा alias एक version की ओर point करता है और release मंज़ूर होने पर बदला जा सकता है।

  5. प्रश्न 5. Lambda alias का 10% traffic नए version पर कैसे भेजा जा सकता है?

    1. दूसरा alias बनाकर DNS से traffic बाँटें
    2. नए version पर reserved concurrency 10 set करें
    3. Alias पर दो versions के बीच weighted routing configure करें
    4. 10% calls के लिए नए version को $LATEST पर deploy करें
    उत्तर दिखाएँ

    उत्तर: C. Alias पर दो versions के बीच weighted routing configure करें

    Alias routing configuration चुने गए प्रतिशत invocations को एक अतिरिक्त version पर भेजती है।

  6. प्रश्न 6. एक Lambda function asynchronously invoke होता है और retries के बाद failed events को SQS queue में भेजना है। क्या configure करना चाहिए?

    1. Function का लंबा timeout
    2. On-failure destination या dead-letter queue
    3. Function पर provisioned concurrency
    4. Zero की reserved concurrency
    उत्तर दिखाएँ

    उत्तर: B. On-failure destination या dead-letter queue

    Asynchronous invocations default रूप से दो बार retry होती हैं। Destinations और DLQs उन events को पकड़ते हैं जो फिर भी fail होते हैं।

  7. प्रश्न 7. कौन-सी Lambda setting गारंटी देती है कि function हमेशा एक निश्चित संख्या तक concurrent executions scale कर सके?

    1. Provisioned throughput
    2. Maximum event age
    3. Reserved concurrency
    4. Ephemeral storage size
    उत्तर दिखाएँ

    उत्तर: C. Reserved concurrency

    Reserved concurrency account pool से capacity अलग रखती है और function को उसी value पर cap भी करती है।

  8. प्रश्न 8. Lambda पर आधारित एक latency-sensitive API में idle अवधि के बाद पहली requests धीमी होती हैं। इसे क्या कम करता है?

    1. Function पर reserved concurrency
    2. बड़ा /tmp storage allocation
    3. Function के सामने SQS queue
    4. Alias पर provisioned concurrency
    उत्तर दिखाएँ

    उत्तर: D. Alias पर provisioned concurrency

    Provisioned concurrency initialized execution environments तैयार रखती है, जिससे cold-start initialization time हट जाता है।

  9. प्रश्न 9. एक Lambda function SQS queue से पढ़ता है। Lambda messages कैसे प्राप्त करता है?

    1. SQS हर message को subscription से function तक push करता है
    2. Function को loop में ReceiveMessage call करना होता है
    3. EventBridge queue के messages function तक forward करता है
    4. Event source mapping queue को poll करके function को batches के साथ invoke करता है
    उत्तर दिखाएँ

    उत्तर: D. Event source mapping queue को poll करके function को batches के साथ invoke करता है

    Event source mappings SQS, Kinesis, DynamoDB Streams जैसे sources को poll करती हैं, फिर function को synchronously invoke करती हैं।

  10. प्रश्न 10. SQS batch में एक message fail होता है जबकि बाकी सफल होते हैं। Lambda पूरे batch को दोबारा process करने से कैसे बच सकता है?

    1. Queue का visibility timeout 12 घंटे करें
    2. Batch size 10,000 messages set करें
    3. Exception throw करें ताकि batch delete हो जाए
    4. ReportBatchItemFailures enable करें और failed message IDs लौटाएँ
    उत्तर दिखाएँ

    उत्तर: D. ReportBatchItemFailures enable करें और failed message IDs लौटाएँ

    Partial batch responses Lambda को सफल messages delete करने और केवल failed messages queue में लौटाने देते हैं।

  11. प्रश्न 11. कौन-सा तरीका database password को Lambda function के code और configuration में plain text से बाहर रखता है?

    1. उसे plain environment variable के रूप में store करें
    2. उसे Secrets Manager में store करके runtime पर fetch करें
    3. उसे deployment package में hard-code करें
    4. उसे function description में रखें
    उत्तर दिखाएँ

    उत्तर: B. उसे Secrets Manager में store करके runtime पर fetch करें

    Secrets Manager secret को encrypted रूप में store करता है और rotation support करता है। Calls कम करने के लिए value को handler के बाहर cache करें।

  12. प्रश्न 12. एक Lambda invocation का अधिकतम timeout कितना है?

    1. 5 मिनट
    2. 1 घंटा
    3. 30 seconds
    4. 15 मिनट
    उत्तर दिखाएँ

    उत्तर: D. 15 मिनट

    इससे लंबा काम steps में बाँटना चाहिए, उदाहरण के लिए Step Functions से, या containers में ले जाना चाहिए।

  13. प्रश्न 13. एक Lambda function को VPC में private RDS database तक पहुँचना है। क्या configure करना होगा?

    1. Lambda function पर public IP address
    2. Function से attached internet gateway
    3. Function पर VPC subnets और security groups
    4. API Gateway private integration
    उत्तर दिखाएँ

    उत्तर: C. Function पर VPC subnets और security groups

    VPC-attached function को चुने गए subnets में elastic network interfaces मिलते हैं और वह private resources तक पहुँच सकता है।

  14. प्रश्न 14. Private subnets में एक VPC-attached Lambda function को public third-party API call करनी है। उसे क्या चाहिए?

    1. NAT gateway की ओर route
    2. Function के network interface पर public IP
    3. Private subnets में internet gateway route
    4. Third-party API के लिए VPC endpoint
    उत्तर दिखाएँ

    उत्तर: A. NAT gateway की ओर route

    Lambda network interfaces को public IPs नहीं मिलते, इसलिए outbound internet access NAT gateway से होकर जाता है।

  15. प्रश्न 15. कौन-सा deployment package विकल्प Lambda function को 10 GB तक की image उपयोग करने देता है?

    1. Console में सीधे upload की गई .zip file
    2. Amazon S3 में stored .zip file
    3. Function से attached Lambda layer
    4. Amazon ECR में stored container image
    उत्तर दिखाएँ

    उत्तर: D. Amazon ECR में stored container image

    Container images 10 GB तक हो सकती हैं। .zip packages unzipped 250 MB तक सीमित हैं।

  16. प्रश्न 16. API Gateway में कौन-सा integration type पूरी request Lambda को देता है और Lambda से पूरा response लौटाने की अपेक्षा करता है?

    1. Lambda proxy integration
    2. Mapping templates के साथ Lambda custom integration
    3. Proxy के बिना HTTP integration
    4. Mock integration
    उत्तर दिखाएँ

    उत्तर: A. Lambda proxy integration

    Proxy integration में function को headers, path और body मिलते हैं और उसे statusCode, headers और body लौटाने होते हैं।

  17. प्रश्न 17. एक domain का browser app दूसरे domain पर API Gateway REST API call करता है और CORS error मिलता है। क्या करना होगा?

    1. CORS enable करें ताकि API Access-Control headers लौटाए
    2. API को private endpoint type में बदलें
    3. हर request पर API key header आवश्यक करें
    4. Stage की throttling rate और burst limits बढ़ाएँ
    उत्तर दिखाएँ

    उत्तर: A. CORS enable करें ताकि API Access-Control headers लौटाए

    Proxy integrations में Lambda function को भी अपने response में Access-Control-Allow-Origin लौटाना होता है।

  18. प्रश्न 18. अलग-अलग API Gateway stages को API definition बदले बिना अलग-अलग Lambda aliases call करने हैं। क्या उपयोग करना चाहिए?

    1. हर stage के लिए अलग APIs
    2. हर stage से attached usage plans
    3. Integration में referenced stage variables
    4. हर alias के लिए custom domain names
    उत्तर दिखाएँ

    उत्तर: C. Integration में referenced stage variables

    ${stageVariables.alias} जैसा stage variable हर stage के लिए Lambda alias चुन सकता है।

  19. प्रश्न 19. एक partner को प्रति दिन 1,000 API requests तक सीमित करना है। API Gateway में क्या configure करना चाहिए?

    1. Quota और API key के साथ usage plan
    2. Requests गिनने वाला Lambda authorizer
    3. Request limit वाला stage variable
    4. अतिरिक्त requests deny करने वाली resource policy
    उत्तर दिखाएँ

    उत्तर: A. Quota और API key के साथ usage plan

    Usage plans throttling और quotas परिभाषित करते हैं और clients को दी गई API keys से जुड़े होते हैं।

  20. प्रश्न 20. कौन-सा API Gateway feature non-proxy backend को भेजने से पहले request body का format बदलता है?

    1. Target stage पर stage variables
    2. Request quotas के साथ usage plans
    3. VTL में लिखे mapping templates
    4. Stage पर canary release settings
    उत्तर दिखाएँ

    उत्तर: C. VTL में लिखे mapping templates

    Mapping templates custom (non-proxy) integrations में requests और responses को transform करते हैं।

  21. प्रश्न 21. JWT authorization के साथ Lambda को requests forward करने वाली कम लागत, कम latency API के लिए कौन-सा API type चुनना चाहिए?

    1. Edge endpoints के साथ API Gateway REST API
    2. API Gateway HTTP API
    3. API Gateway WebSocket API
    4. Sticky sessions के साथ Application Load Balancer
    उत्तर दिखाएँ

    उत्तर: B. API Gateway HTTP API

    HTTP APIs, REST APIs से सरल और सस्ती हैं और native JWT authorizers शामिल करती हैं।

  22. प्रश्न 22. एक chat application को clients और backend के बीच persistent two-way connection चाहिए। कौन-सा API Gateway type उपयुक्त है?

    1. WebSocket API
    2. Caching के साथ REST API
    3. CORS के साथ HTTP API
    4. Usage plan के साथ REST API
    उत्तर दिखाएँ

    उत्तर: A. WebSocket API

    WebSocket APIs connections खुले रखती हैं और $connect और sendmessage जैसी route key से messages route करती हैं।

  23. प्रश्न 23. एक DynamoDB table OrderId को partition key के रूप में उपयोग करती है। App को किसी customer के सभी orders जल्दी लाने हैं। क्या जोड़ना चाहिए?

    1. CustomerId partition key वाला local secondary index
    2. CustomerId पर filter के साथ Scan
    3. Batch job से हर रात copy होने वाली दूसरी table
    4. CustomerId partition key वाला global secondary index
    उत्तर दिखाएँ

    उत्तर: D. CustomerId partition key वाला global secondary index

    GSIs किसी भी attribute को partition key बना सकते हैं। LSIs को table की partition key साझा करनी होती है।

  24. प्रश्न 24. एक ही partition key वाले सभी items लाने के लिए कौन-सा DynamoDB operation सबसे कुशल है?

    1. FilterExpression के साथ Scan
    2. हर sort key के साथ BatchGetItem
    3. Loop में call किया गया GetItem
    4. Query
    उत्तर दिखाएँ

    उत्तर: D. Query

    Query केवल एक partition key के items पढ़ता है। Scan filter करने से पहले पूरी table पढ़ता है।

  25. प्रश्न 25. DynamoDB Query response में LastEvaluatedKey लौटाता है। इसका क्या अर्थ है?

    1. Query fail हुई और backoff के साथ retry करनी होगी
    2. उस partition key के लिए table में और items नहीं हैं
    3. Request ने table की provisioned write capacity पार कर दी
    4. और results हैं; अगली बार इसे ExclusiveStartKey के रूप में दें
    उत्तर दिखाएँ

    उत्तर: D. और results हैं; अगली बार इसे ExclusiveStartKey के रूप में दें

    Query और Scan प्रति call अधिकतम 1 MB लौटाते हैं, इसलिए applications लौटाई गई key से pagination करती हैं।

  26. प्रश्न 26. दो users एक ही DynamoDB item को एक साथ update कर सकते हैं। एक update को चुपचाप दूसरे को overwrite करने से कैसे रोकें?

    1. हर request के लिए eventually consistent reads उपयोग करें
    2. Version attribute के साथ conditional write उपयोग करें
    3. Table की write capacity units बढ़ाएँ
    4. Version पर global secondary index जोड़ें
    उत्तर दिखाएँ

    उत्तर: B. Version attribute के साथ conditional write उपयोग करें

    Optimistic locking ConditionExpression में expected version जाँचती है और बदल जाने पर fail होती है।

  27. प्रश्न 27. एक order और दो DynamoDB tables में उसका inventory update एक साथ सफल या fail होने चाहिए। क्या उपयोग करना चाहिए?

    1. BatchWriteItem
    2. Retries के साथ दो PutItem calls
    3. TransactWriteItems
    4. Tables के बीच DynamoDB stream
    उत्तर दिखाएँ

    उत्तर: C. TransactWriteItems

    Transactions items और tables में all-or-nothing writes देते हैं। BatchWriteItem atomic नहीं है।

  28. प्रश्न 28. एक table provisioned capacity उपयोग करती है। 6 KB items की प्रति second 10 strongly consistent reads के लिए कितने RCUs चाहिए?

    1. 10
    2. 15
    3. 60
    4. 20
    उत्तर दिखाएँ

    उत्तर: D. 20

    एक RCU प्रति second 4 KB तक की एक strongly consistent read है। 6 KB item 8 KB तक round होता है, यानी 2 RCUs, इसलिए 10 × 2 = 20।

  29. प्रश्न 29. प्रति second 5 items, हर एक 2.5 KB, लिखने के लिए कितने WCUs चाहिए?

    1. 15
    2. 5
    3. 10
    4. 13
    उत्तर दिखाएँ

    उत्तर: A. 15

    एक WCU प्रति second 1 KB तक का एक write है। 2.5 KB, 3 KB तक round होता है, इसलिए हर write को 3 WCUs चाहिए, और 5 × 3 = 15।

  30. प्रश्न 30. DynamoDB में session items को 24 घंटे बाद बिना अतिरिक्त लागत के अपने-आप delete होना चाहिए। क्या उपयोग करना चाहिए?

    1. Items scan करके delete करने वाला scheduled Lambda
    2. 24-hour TTL के साथ DynamoDB Accelerator (DAX)
    3. Table पर lifecycle rule
    4. Expiry timestamp attribute पर Time to Live (TTL)
    उत्तर दिखाएँ

    उत्तर: D. Expiry timestamp attribute पर Time to Live (TTL)

    TTL write capacity उपयोग किए बिना background में expired items delete करता है।

  31. प्रश्न 31. एक Lambda function को DynamoDB table में हुए हर बदलाव पर प्रतिक्रिया देनी है। उसे क्या trigger करे?

    1. Event source mapping के साथ DynamoDB Streams
    2. S3 event notification
    3. CloudWatch Logs subscription filter
    4. Table से subscribed SNS topic
    उत्तर दिखाएँ

    उत्तर: A. Event source mapping के साथ DynamoDB Streams

    Streams item-level changes को क्रम में record करती हैं, और Lambda उन्हें batches में process करता है।

  32. प्रश्न 32. एक DynamoDB query बड़े items लौटाती है, लेकिन app को केवल दो attributes चाहिए। Response size कैसे कम किया जा सकता है?

    1. ProjectionExpression का उपयोग करें
    2. FilterExpression का उपयोग करें
    3. ConditionExpression का उपयोग करें
    4. UpdateExpression का उपयोग करें
    उत्तर दिखाएँ

    उत्तर: A. ProjectionExpression का उपयोग करें

    ProjectionExpression लौटाए गए attributes सीमित करता है। FilterExpression items पढ़ने के बाद उन्हें हटाता है।

  33. प्रश्न 33. एक SQS consumer को कभी-कभी एक message के लिए visibility timeout से अधिक समय चाहिए। उसे क्या करना चाहिए?

    1. Message delete करके तुरंत फिर से भेजें
    2. उस message का timeout बढ़ाने के लिए ChangeMessageVisibility call करें
    3. Queue की delivery delay 15 मिनट set करें
    4. Queue को short polling से long polling में बदलें
    उत्तर दिखाएँ

    उत्तर: B. उस message का timeout बढ़ाने के लिए ChangeMessageVisibility call करें

    Processing में चल रहे message की visibility बढ़ाने से दूसरा consumer उसे प्राप्त नहीं करता।

  34. प्रश्न 34. SQS queue में भेजे गए messages भेजने के 60 seconds बाद तक consumers को नहीं दिखने चाहिए। क्या set करना चाहिए?

    1. 60 seconds का visibility timeout
    2. 60 seconds की message retention अवधि
    3. 60 seconds का receive wait time
    4. 60 की delivery delay (DelaySeconds)
    उत्तर दिखाएँ

    उत्तर: D. 60 की delivery delay (DelaySeconds)

    Delivery delay नए messages को 15 मिनट तक छिपाती है। Visibility timeout message प्राप्त होने के बाद लागू होता है।

  35. प्रश्न 35. एक SQS FIFO queue को हर customer के messages क्रम में process करने हैं, जबकि अलग-अलग customers parallel में process हों। क्या set करना चाहिए?

    1. MessageDeduplicationId को customer ID पर
    2. हर message के लिए अलग FIFO queue
    3. हर customer के लिए delivery delay
    4. MessageGroupId को customer ID पर
    उत्तर दिखाएँ

    उत्तर: D. MessageGroupId को customer ID पर

    क्रम एक message group के भीतर बना रहता है। अलग-अलग groups एक साथ process हो सकते हैं।

  36. प्रश्न 36. Network retry के बाद एक producer FIFO queue में एक ही message दो बार भेज सकता है। Duplicates कैसे रोके जाते हैं?

    1. Content-based deduplication या MessageDeduplicationId
    2. Queue पर लंबा visibility timeout
    3. maxReceiveCount 1 वाली dead-letter queue
    4. 20-second wait time के साथ long polling
    उत्तर दिखाएँ

    उत्तर: A. Content-based deduplication या MessageDeduplicationId

    FIFO queues 5-minute deduplication interval में भेजे गए समान deduplication ID वाले messages drop कर देती हैं।

  37. प्रश्न 37. एक application को SQS से 2 MB payloads भेजने हैं। अनुशंसित तरीका क्या है?

    1. Payload को 1 KB के 2,000 अलग messages में बाँटें
    2. Queue का maximum message size 2 MB करें
    3. उसे S3 में store करके reference भेजें, जैसे Extended Client से
    4. Payload compress करके FIFO message group में भेजें
    उत्तर दिखाएँ

    उत्तर: C. उसे S3 में store करके reference भेजें, जैसे Extended Client से

    SQS messages 256 KB तक सीमित हैं, इसलिए बड़े payloads S3 में store होते हैं और message में pointer होता है।

  38. प्रश्न 38. जब application बहुत से छोटे messages भेजती है, तो कौन-सी API call SQS लागत कम करती है?

    1. लंबी delay के साथ SendMessage
    2. Short polling के साथ ReceiveMessage
    3. हर send के बाद PurgeQueue
    4. 10 messages तक के साथ SendMessageBatch
    उत्तर दिखाएँ

    उत्तर: D. 10 messages तक के साथ SendMessageBatch

    Batching एक request में 10 messages तक भेजता है, जिससे billed API calls कम होती हैं।

  39. प्रश्न 39. एक event को अलग-अलग services की तीन SQS queues तक पहुँचाना है। कौन-सा pattern उपयुक्त है?

    1. Event को एक queue में भेजें जो बाकी को forward करे
    2. SNS topic पर publish करें जिसे तीनों queues subscribe करें
    3. हर service producer के database को poll करे
    4. तीन message groups वाली FIFO queue उपयोग करें
    उत्तर दिखाएँ

    उत्तर: B. SNS topic पर publish करें जिसे तीनों queues subscribe करें

    SNS-to-SQS fan-out हर subscribed queue को हर message की copy पहुँचाता है।

  40. प्रश्न 40. एक SNS subscriber को केवल वे messages मिलने चाहिए जिनमें attribute eventType "refund" हो। क्या उपयोग करना चाहिए?

    1. Subscription filter policy
    2. हर subscriber के लिए अलग topic
    3. अन्य messages drop करने वाला Lambda function
    4. हर event type के लिए SQS message group
    उत्तर दिखाएँ

    उत्तर: A. Subscription filter policy

    Filter policies SNS द्वारा evaluate होती हैं, इसलिए non-matching messages उस subscriber को कभी deliver नहीं होते।

  41. प्रश्न 41. एक Lambda function केवल तब चलना चाहिए जब कोई EC2 instance "stopped" state में जाए। क्या configure करना चाहिए?

    1. एक EventBridge rule जिसका event pattern उस state change से match करे
    2. Instance के system log पर CloudWatch Logs metric filter
    3. हर मिनट EC2 API poll करने वाली SQS queue
    4. सीधे EC2 instance से subscribed SNS topic
    उत्तर दिखाएँ

    उत्तर: A. एक EventBridge rule जिसका event pattern उस state change से match करे

    EventBridge को EC2 state-change events मिलते हैं, और rule का JSON event pattern detail.state = "stopped" से match करके function को target कर सकता है।

  42. प्रश्न 42. एक Lambda function हर दिन 02:00 UTC पर चलना चाहिए। उसे schedule करने का सबसे सरल तरीका क्या है?

    1. EventBridge Scheduler schedule या scheduled rule
    2. Function call करने वाला EC2 instance पर cron job
    3. 24-hour delivery delay वाली SQS queue
    4. Function invoke करने वाला S3 lifecycle rule
    उत्तर दिखाएँ

    उत्तर: A. EventBridge Scheduler schedule या scheduled rule

    EventBridge cron और rate expressions support करता है और function को सीधे invoke करता है।

  43. प्रश्न 43. एक order workflow में कई steps, retries, error handling और कई दिन ले सकने वाला manual approval है। कौन-सी service उपयुक्त है?

    1. AWS Step Functions Express Workflows
    2. AWS Step Functions Standard Workflows
    3. Long polling के साथ SQS queue
    4. लंबे timeout वाला एक Lambda function
    उत्तर दिखाएँ

    उत्तर: B. AWS Step Functions Standard Workflows

    Standard Workflows exactly-once execution के साथ एक साल तक चलते हैं। Express Workflows 5 मिनट तक सीमित हैं।

  44. प्रश्न 44. एक high-volume event processing workflow प्रति second हज़ारों बार चलता है और seconds में पूरा होता है। कौन-सा Step Functions type सस्ता है?

    1. Standard Workflows
    2. Activity tasks के साथ Standard Workflows
    3. Express Workflows
    4. Nested Standard Workflows
    उत्तर दिखाएँ

    उत्तर: C. Express Workflows

    Express Workflows executions और duration के आधार पर bill होते हैं और छोटे, high-rate workloads के लिए उपयुक्त हैं।

  45. प्रश्न 45. Step Functions में कौन-सा state array के हर item के लिए वही steps चलाता है?

    1. Choice
    2. Wait
    3. Pass
    4. Map
    उत्तर दिखाएँ

    उत्तर: D. Map

    Map items पर iterate करता है, वैकल्पिक रूप से parallel में। Parallel एक साथ अलग-अलग branches चलाता है।

  46. प्रश्न 46. Kinesis data stream के records हर device के लिए क्रम में process होने चाहिए। Producer को क्या set करना चाहिए?

    1. हर device के लिए अलग stream
    2. Partition key को device ID पर
    3. Sequence number को device ID पर
    4. हर consumer के लिए 1 shard count
    उत्तर दिखाएँ

    उत्तर: B. Partition key को device ID पर

    एक ही partition key वाले records एक ही shard में जाते हैं, जहाँ क्रम बना रहता है।

  47. प्रश्न 47. एक Kinesis stream consumer पीछे रह जाता है, और stream में पर्याप्त shards हैं। Lambda processing कैसे तेज़ की जा सकती है?

    1. Event source mapping का parallelization factor बढ़ाएँ
    2. Stream पर सीधे dead-letter queue जोड़ें
    3. Stream की data retention अवधि 24 घंटे करें
    4. Stream को SQS FIFO queue से बदलें
    उत्तर दिखाएँ

    उत्तर: A. Event source mapping का parallelization factor बढ़ाएँ

    10 तक का parallelization factor Lambda को प्रति shard कई batches process करने देता है, और partition key के अनुसार क्रम बना रहता है।

  48. प्रश्न 48. एक browser को AWS credentials के बिना private S3 bucket में सीधे file upload करनी है। Backend को क्या लौटाना चाहिए?

    1. IAM user की access key और secret key
    2. PutObject request के लिए presigned URL
    3. Bucket का ARN और public ACL
    4. GET के लिए CloudFront signed cookie
    उत्तर दिखाएँ

    उत्तर: B. PutObject request के लिए presigned URL

    Presigned URLs backend के credentials से signed होते हैं और एक operation के लिए अस्थायी अनुमति देते हैं।

  49. प्रश्न 49. जब भी S3 bucket में uploads/ prefix के तहत नया object जोड़ा जाए, एक Lambda function चलना चाहिए। क्या configure करना चाहिए?

    1. Prefix के लिए S3 lifecycle rule
    2. Prefix filter के साथ S3 event notification
    3. Lambda function के लिए S3 Replication
    4. Function invoke करने वाली bucket policy
    उत्तर दिखाएँ

    उत्तर: B. Prefix filter के साथ S3 event notification

    Event notifications ObjectCreated events को Lambda, SQS, SNS या EventBridge को भेज सकती हैं।

  50. प्रश्न 50. एक application DynamoDB में लिखती है और reads को ElastiCache में cache करना चाहती है ताकि cache हमेशा current रहे। कौन-सी strategy उपयुक्त है?

    1. केवल lazy loading, keys पर कोई expiry नहीं
    2. Write-through: हर database write पर cache update करें
    3. Database से पढ़ें और writes कभी cache न करें
    4. केवल failed reads को बाद में retry के लिए cache करें
    उत्तर दिखाएँ

    उत्तर: B. Write-through: हर database write पर cache update करें

    Write-through data को current रखता है लेकिन ऐसे items cache कर सकता है जो कभी पढ़े नहीं जाते। TTL जोड़ना मदद करता है।

  51. प्रश्न 51. Lazy-loading caching strategy की एक कमी क्या है?

    1. हर write को पहले cache update करना होता है
    2. Cache miss से latency बढ़ती है, और cached data पुराना हो सकता है
    3. Cache ऐसे data से भर जाता है जो कभी पढ़ा नहीं जाता
    4. इसे Redis या Memcached के साथ उपयोग नहीं किया जा सकता
    उत्तर दिखाएँ

    उत्तर: B. Cache miss से latency बढ़ती है, और cached data पुराना हो सकता है

    Lazy loading केवल requested data cache करता है। TTLs सीमित करते हैं कि data कितना पुराना हो सकता है।

  52. प्रश्न 52. DynamoDB-backed app को अपने data access code में ज़्यादा बदलाव किए बिना microsecond read latency चाहिए। क्या उपयोग करना चाहिए?

    1. Custom logic के साथ ElastiCache for Memcached
    2. हर attribute पर global secondary index
    3. DynamoDB Accelerator (DAX)
    4. हर request पर strongly consistent reads
    उत्तर दिखाएँ

    उत्तर: C. DynamoDB Accelerator (DAX)

    DAX, DynamoDB के लिए एक write-through cache है जो compatible API उपयोग करता है।

  53. प्रश्न 53. DynamoDB API call ProvisionedThroughputExceededException के साथ fail होती है। Client को क्या करना चाहिए?

    1. Tight loop में तुरंत retry करें
    2. Exponential backoff और jitter के साथ retry करें
    3. Scan operation पर switch करें
    4. Table delete करके फिर से बनाएँ
    उत्तर दिखाएँ

    उत्तर: B. Exponential backoff और jitter के साथ retry करें

    AWS SDKs throttling errors को backoff के साथ अपने-आप retry करते हैं। लगातार throttling के लिए अधिक capacity या बेहतर keys चाहिए।

  54. प्रश्न 54. AWS SDKs में default credential provider chain के बारे में कौन-सा कथन सही है?

    1. यह केवल application के source code में hard-coded credentials पढ़ती है
    2. Amazon EC2 पर चलते समय भी इसे long-term access key चाहिए
    3. यह credentials को दोबारा उपयोग के लिए application के database में store करती है
    4. यह environment variables, shared files, फिर instance या task roles जाँचती है
    उत्तर दिखाएँ

    उत्तर: D. यह environment variables, shared files, फिर instance या task roles जाँचती है

    AWS compute पर SDK temporary role credentials अपने-आप ले लेता है, इसलिए code में keys की ज़रूरत नहीं होती।

  55. प्रश्न 55. एक developer को long-term access keys के बिना laptop से AWS APIs call करनी हैं। क्या अनुशंसित है?

    1. Temporary credentials के लिए aws sso login के साथ IAM Identity Center
    2. Text file में access keys वाला IAM user
    3. Environment variables में stored root user access keys
    4. हर साल rotate होने वाली shared team access key
    उत्तर दिखाएँ

    उत्तर: A. Temporary credentials के लिए aws sso login के साथ IAM Identity Center

    IAM Identity Center के short-lived credentials long-term keys store करने से बचाते हैं।

  56. प्रश्न 56. एक mobile app को managed GraphQL API चाहिए जो real-time subscriptions के साथ DynamoDB और Lambda का data जोड़े। कौन-सी service उपयुक्त है?

    1. AWS AppSync
    2. Amazon API Gateway REST API
    3. AWS Step Functions
    4. Amazon Kinesis Data Streams
    उत्तर दिखाएँ

    उत्तर: A. AWS AppSync

    AppSync कई data sources के resolvers और built-in subscriptions के साथ GraphQL APIs host करता है।

  57. प्रश्न 57. SQS, SNS या EventBridge से trigger होने वाले Lambda functions idempotent क्यों होने चाहिए?

    1. Lambda कभी failed events retry नहीं करता
    2. Events हमेशा सख्त क्रम में आते हैं
    3. Idempotent functions बिना IAM roles के चलते हैं
    4. Events एक से अधिक बार deliver हो सकते हैं
    उत्तर दिखाएँ

    उत्तर: D. Events एक से अधिक बार deliver हो सकते हैं

    At-least-once delivery का अर्थ है कि duplicates हो सकते हैं, इसलिए एक ही event को दो बार process करना सुरक्षित होना चाहिए।

  58. प्रश्न 58. एक function payment record लिखता है और event redeliver होने पर दो बार charge नहीं करना चाहिए। एक आम तरीका क्या है?

    1. Conditional write के साथ idempotency key store करें और duplicates छोड़ दें
    2. Function की memory setting बढ़ाएँ
    3. हर event source पर retries disable करें
    4. Events को केवल eventually consistent reads से process करें
    उत्तर दिखाएँ

    उत्तर: A. Conditional write के साथ idempotency key store करें और duplicates छोड़ दें

    Idempotency key पर conditional put दोहराए गए event के लिए fail होता है, इसलिए charge दोहराया नहीं जाता।

  59. प्रश्न 59. कौन-सा DynamoDB read type सबसे हाल का committed data लौटाता है, दोगुनी read लागत पर?

    1. Strongly consistent read
    2. Eventually consistent read
    3. Transactional read
    4. Global secondary index से read
    उत्तर दिखाएँ

    उत्तर: A. Strongly consistent read

    Strongly consistent reads प्रति 4 KB 1 RCU लेते हैं। Eventually consistent reads की लागत आधी है। GSIs केवल eventual consistency support करते हैं।

  60. प्रश्न 60. कम network calls के साथ DynamoDB में बहुत से items लिखने हैं। कौन-सी API मदद करती है, और caller को क्या संभालना होगा?

    1. TransactWriteItems, और failures ignore करें
    2. PutItem, बड़े item size के साथ
    3. UpdateItem, projection expression के साथ
    4. BatchWriteItem, और किसी भी UnprocessedItems को retry करें
    उत्तर दिखाएँ

    उत्तर: D. BatchWriteItem, और किसी भी UnprocessedItems को retry करें

    BatchWriteItem प्रति call 25 items तक लिखता है लेकिन unprocessed items लौटा सकता है जिन्हें retry करना होता है।

  61. प्रश्न 61. एक table का access pattern है "किसी device के नवीनतम 10 events लाना"। कौन-सा key design सबसे उपयुक्त है?

    1. Partition key timestamp, table पर कोई sort key नहीं
    2. Partition key eventType और sort key deviceId
    3. Partition key deviceId, sort key timestamp, नवीनतम पहले query
    4. Random partition key के साथ Scan, फिर code में sorting
    उत्तर दिखाएँ

    उत्तर: C. Partition key deviceId, sort key timestamp, नवीनतम पहले query

    ScanIndexForward=false और Limit=10 के साथ Query एक device के नवीनतम items लौटाती है।

  62. प्रश्न 62. कौन-सा Lambda feature SQS queue या Kinesis stream के events filter करता है ताकि function केवल matching records के लिए invoke हो?

    1. Function पर reserved concurrency limit
    2. Function के लिए on-success destination
    3. Event source mapping पर event filtering
    4. Function पर alias routing configuration
    उत्तर दिखाएँ

    उत्तर: C. Event source mapping पर event filtering

    Filter criteria event patterns उपयोग करते हैं, जिससे invocations और लागत कम होती है।

  63. प्रश्न 63. एक Lambda function को API Gateway invoke करता है। कौन-सा invocation type उपयोग होता है?

    1. Synchronous, इसलिए errors caller को लौटते हैं
    2. Asynchronous, दो automatic retries के साथ
    3. Poll-based, event source mapping के माध्यम से
    4. Asynchronous, on-failure destination के साथ
    उत्तर दिखाएँ

    उत्तर: A. Synchronous, इसलिए errors caller को लौटते हैं

    API Gateway response की प्रतीक्षा करता है। Synchronous invocations को retry करना caller का काम है।

  64. प्रश्न 64. नए object के लिए S3 event notification को rule-based filtering के साथ कई consumers तक पहुँचना चाहिए। क्या enable करना चाहिए?

    1. उसी prefix के साथ दूसरी event notification
    2. Bucket पर Amazon EventBridge notifications
    3. Bucket पर S3 Object Lambda
    4. S3 Transfer Acceleration
    उत्तर दिखाएँ

    उत्तर: B. Bucket पर Amazon EventBridge notifications

    EventBridge integration bucket के सभी events को EventBridge भेजता है, जहाँ कई rules उन्हें match और route कर सकते हैं।

AWS, Amazon Web Services और AWS Certified, Amazon.com, Inc. या उसकी सहयोगी कंपनियों के ट्रेडमार्क हैं। ये प्रश्न मौलिक अध्ययन सामग्री हैं, असली परीक्षा के प्रश्न नहीं।