1. Home
  2. MCQs by exam
  3. NTS

NTS MCQs · Page 62

5,604 multiple choice questions typical of the NTS exam, with answers and explanations. Switch on practice mode to test yourself first.

Showing 1526–1550 of 5,604

In f1_score with average='macro', how are the per-class scores combined into one number?

  1. As a mean weighted by each class's support, so large classes dominate
  2. As a mean weighted by each class's predicted count rather than support
  3. As the ratio of total true positives to total predicted positives
  4. As an unweighted mean, so every class counts equally whatever its size Correct answer
MCQSEXAM Read explanation

A pattern capturing one or more digits is applied with Series.str.extract to a column where some values do not match. What appears in those rows?

  1. NaN in the extracted column, because a non-match yields a missing value Correct answer
  2. An empty string, because extract returns the unmatched part of the input
  3. The original value unchanged, since extract only rewrites matching rows
  4. An error, because extract requires every value to match the pattern
MCQSEXAM Read explanation

A CloudFront distribution has a default TTL of 86400 seconds and a minimum TTL of 0. The origin sends Cache-Control: max-age=300. For how long does CloudFront cache the object?

  1. 86400 seconds, because the distribution default takes precedence always
  2. 0 seconds, because the minimum TTL allows revalidation on every request
  3. 300 seconds, but only when the viewer sends no conditional headers
  4. 300 seconds, because the origin header overrides the default TTL value Correct answer
MCQSEXAM Read explanation

A Route 53 failover routing policy has primary and secondary records configured. What causes traffic to switch to the secondary?

  1. A latency increase above the threshold set in the routing policy
  2. The TTL of the primary record expiring without a refresh from the zone
  3. The health check on the primary record failing its configured checks Correct answer
  4. The primary record being deleted from the hosted zone by an operator
MCQSEXAM Read explanation