Red Hat Certified Cloud-native Developer exam 온라인 연습
최종 업데이트 시간: 2025년06월06일
당신은 온라인 연습 문제를 통해 RedHat EX378 시험지식에 대해 자신이 어떻게 알고 있는지 파악한 후 시험 참가 신청 여부를 결정할 수 있다.
시험을 100% 합격하고 시험 준비 시간을 35% 절약하기를 바라며 EX378 덤프 (최신 실제 시험 문제)를 사용 선택하여 현재 최신 123개의 시험 문제와 답을 포함하십시오.
정답:
Explanation:
curl http://localhost:8080/q/health # all
curl http://localhost:8080/q/health/live # liveness
curl http://localhost:8080/q/health/ready # readiness
12 1. Use a shared service in a health check to determine status.
A. See the Explanation.
Answer: A
Explanation:
@Readiness
@ApplicationScoped
public class ServiceHealthCheck implements HealthCheck {
@Inject ExternalService service;
@Override
public HealthCheckResponse call() {
return service.isAvailable() ? HealthCheckResponse.up("external-ok") :
HealthCheckResponse.down("external-fail");
}
}
정답:
Explanation:
@Readiness
@ApplicationScoped
public class SlowReactiveReadiness implements ReactiveHealthCheck {
@Override
public Uni<HealthCheckResponse> call() {
return Uni.createFrom().item(() -> HealthCheckResponse.up("slow-ready"))
.onItem().delayIt().by(Duration.ofSeconds(2));
}
}
정답:
Explanation:
@Startup
@ApplicationScoped
public class DelayedStartupProbe implements HealthCheck {
private final long startTime = System.currentTimeMillis();
@Override
public HealthCheckResponse call() {
return System.currentTimeMillis() - startTime > 3000 ? HealthCheckResponse.up("delayed-startup")
: HealthCheckResponse.down("booting");
}
}
정답:
Explanation:
@Liveness
@ApplicationScoped
public class ReactiveLivenessCheck implements ReactiveHealthCheck {
@Override
public Uni<HealthCheckResponse> call() {
return Uni.createFrom().item(HealthCheckResponse.up("reactive-check"));
}
}
정답:
Explanation:
@Readiness
@ApplicationScoped
public class DiskSpaceCheck implements HealthCheck {
@Override
public HealthCheckResponse call() {
File root = new File("/");
long freeSpace = root.getFreeSpace();
return HealthCheckResponse.named("disk-space")
.status(freeSpace > 1000000000)
.withData("free", freeSpace)
.build();
}
}
정답:
Explanation:
• Access /q/health/live for @Liveness
• Access /q/health/ready for @Readiness
• Add multiple classes each annotated with either annotation
정답:
Explanation:
@Startup
@ApplicationScoped
public class StartupProbe implements HealthCheck {
private final long start = System.currentTimeMillis();
@Override
public HealthCheckResponse call() {
return (System.currentTimeMillis() - start > 5000)
? HealthCheckResponse.up("startup-complete") : HealthCheckResponse.down("still-starting");
}
}
정답:
Explanation:
@Liveness
@ApplicationScoped
public class PingLivenessCheck implements HealthCheck { int failures = 0;
@Override
public HealthCheckResponse call() {
if (++failures > 3) return HealthCheckResponse.down("ping-fail"); return HealthCheckResponse.up("ping-ok");
}
}
정답:
Explanation:
@Readiness
@ApplicationScoped
public class FileReadinessCheck implements HealthCheck {
@Override
public HealthCheckResponse call() {
File f = new File("/tmp/ready.flag");
return f.exists() ? HealthCheckResponse.up("file-check") : HealthCheckResponse.down("file-check");
}
}
정답:
Explanation:
@Asynchronous
@Bulkhead(value = 2, waitingTaskQueue = 5)
@Fallback(fallbackMethod = "asyncFallback")
public CompletionStage<String> bulkheadAsync() {
return CompletableFuture.supplyAsync(() -> {
Thread.sleep(3000);
return "Done";
});
}
public CompletionStage<String> asyncFallback() {
return CompletableFuture.completedFuture("Fallback async result");
}
11 1. Create a basic liveness check using the HealthCheck interface.
A. See the Explanation.
Answer: A
Explanation:
@Liveness
@ApplicationScoped
public class BasicLivenessCheck implements HealthCheck {
@Override
public HealthCheckResponse call() {
return HealthCheckResponse.up("basic-liveness");
}
}
Hit /q/health/live to see the result.
정답:
Explanation:
@Path("/upload")
public class UploadResource {
@GET
@Bulkhead(3)
public String upload() {
return "Processing upload...";
}
}
Prevents more than 3 concurrent uploads.
정답:
Explanation:
Use tools like Prometheus + Grafana or Quarkus Dev UI (in dev mode) to inspect runtime health of fault-tolerant components.
정답:
Explanation:
Enable metrics in Quarkus:
quarkus.smallrye-metrics.enabled=true
Then access /q/metrics endpoint to view fault tolerance metrics.
정답:
Explanation:
@Inject
@ConfigProperty(name = "fallback.threshold", defaultValue = "5")
int threshold;
Used in fallback logic or method to tune runtime behavior.
정답:
Explanation:
application-staging.properties:
mp.fault.tolerance.timeout.default.timeout=2000
mp.fault.tolerance.bulkhead.default.value=4
Activate with: -Dquarkus.profile=staging